
/**
 房间运营状态
 *
*/

import { ActionArgHelper } from "GameLoop/Execution/ControlManager/Control/ActionManager/ActionArgHelper";
import { ATeamCombat } from "GameLoop/WorldState/EntityManager/Entitys";
import { State } from "framework/FSM/AState";

/**
 * 战斗移动。靠近目标
*/
export class State_Team2MoveCloseTo<T extends IStateArg<ATeamCombat,ITaskDeclare["team"]>> extends State<T>
{
    public getActions(arg:T):Action[]
    {
        const movetarget = arg.entity.moveTarget();
        if(movetarget)
        {
            const action  =ActionArgHelper.actionTeamMoveto(arg.entity,movetarget,{},"lineMove")
            return [action]
        }
        return [];
    }
}
